package com.laolei.template.assist;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class BuildData {

	private static Map<String, Object> ctx = new HashMap<String, Object>(); 
	
	public final static void init() {
        ctx.put("name", "Chris");  
        ctx.put("value", "10000");  
        ctx.put("taxed_value", "10000 - (10000 * 0.4)");  
        ctx.put("in_ca", "true");
        for (int i = 0; i < 10; i++) {
            ctx.put("key-"+i, UUID.randomUUID());
		}
        ctx.put("ctx", new HashMap<>(ctx).entrySet());
        ctx.put("m", new String[]{"222222222222222","1111111111111111111","00000000000000000000"});
	}
	
	public final static void clear() {
        ctx.clear();
	}
	
	public final static Map<String, Object> build() { 
        return ctx;
	}
}
